package com.temi.iot.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author a
 * @since 2019-12-11
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pa_appiont_device")
@ApiModel(value="PaAppiontDevice对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class PaAppiontDevice extends Model<PaAppiontDevice> {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "设备ID")
    private Integer deviceId;

    @ApiModelProperty(value = "部门ID")
    private Integer roleId;

    @ApiModelProperty(value = "指派人员ID")
    private Integer userId;

    @ApiModelProperty(value = "1-未指派,2-指派")
    private Integer appiontType;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private String cext1;

    private String cext2;


    @Override
    protected Long  pkVal() {
        return id;
    }
}
